package com.ruoyi.ax.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.ax.mapper.AxRoundIncreateRecordMapper;
import com.ruoyi.ax.domain.AxRoundIncreateRecord;
import com.ruoyi.ax.service.IAxRoundIncreateRecordService;

/**
 * 场次增长记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-07
 */
@Service
public class AxRoundIncreateRecordServiceImpl implements IAxRoundIncreateRecordService 
{
    @Autowired
    private AxRoundIncreateRecordMapper axRoundIncreateRecordMapper;

    /**
     * 查询场次增长记录
     * 
     * @param id 场次增长记录主键
     * @return 场次增长记录
     */
    @Override
    public AxRoundIncreateRecord selectAxRoundIncreateRecordById(Long id)
    {
        return axRoundIncreateRecordMapper.selectAxRoundIncreateRecordById(id);
    }

    /**
     * 查询场次增长记录列表
     * 
     * @param axRoundIncreateRecord 场次增长记录
     * @return 场次增长记录
     */
    @Override
    public List<AxRoundIncreateRecord> selectAxRoundIncreateRecordList(AxRoundIncreateRecord axRoundIncreateRecord)
    {
        return axRoundIncreateRecordMapper.selectAxRoundIncreateRecordList(axRoundIncreateRecord);
    }

    /**
     * 新增场次增长记录
     * 
     * @param axRoundIncreateRecord 场次增长记录
     * @return 结果
     */
    @Override
    public int insertAxRoundIncreateRecord(AxRoundIncreateRecord axRoundIncreateRecord)
    {
        axRoundIncreateRecord.setCreateTime(DateUtils.getNowDate());
        return axRoundIncreateRecordMapper.insertAxRoundIncreateRecord(axRoundIncreateRecord);
    }

    /**
     * 修改场次增长记录
     * 
     * @param axRoundIncreateRecord 场次增长记录
     * @return 结果
     */
    @Override
    public int updateAxRoundIncreateRecord(AxRoundIncreateRecord axRoundIncreateRecord)
    {
        axRoundIncreateRecord.setUpdateTime(DateUtils.getNowDate());
        return axRoundIncreateRecordMapper.updateAxRoundIncreateRecord(axRoundIncreateRecord);
    }

    /**
     * 批量删除场次增长记录
     * 
     * @param ids 需要删除的场次增长记录主键
     * @return 结果
     */
    @Override
    public int deleteAxRoundIncreateRecordByIds(Long[] ids)
    {
        return axRoundIncreateRecordMapper.deleteAxRoundIncreateRecordByIds(ids);
    }

    /**
     * 删除场次增长记录信息
     * 
     * @param id 场次增长记录主键
     * @return 结果
     */
    @Override
    public int deleteAxRoundIncreateRecordById(Long id)
    {
        return axRoundIncreateRecordMapper.deleteAxRoundIncreateRecordById(id);
    }
}
